<?php

$dbhost = 'localhost';
$dbuser = 'root';
$dbpass = '';
$dbname = 'twitter';

$dbconn = mysql_connect($dbhost, $dbuser, $dbpass) or die('Error connecting to mysql');
if (!$dbconn) die("Unable to access database.");

mysql_select_db($dbname);

?>